<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8"/>
  <title>dependentSchemas</title>
  <script src="../../dist/jsoneditor.js"></script>
  <link rel="stylesheet" id="theme-link" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
  <link rel="stylesheet" id="iconlib-link" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css">
</head>
<body>

<div class="container">
  <h1>Test</h1>
  <div id='editor-container'></div>
</div>

<style>
  th {
    white-space: nowrap;
  }
</style>

<script>
  var editorContainer = document.querySelector('#editor-container')
  var schema = {
    "title": "Array table responsive",
    "format": "table",
    "type": "array",
    "minItems": 1,
    "items": {
      "title": "item",
      "type": "object",
      "properties": {
        "property_a": {
          "title": "A very long title",
          "type": "string"
        },
        "property_b": {
          "title": "Another long title",
          "type": "string"
        },
        "property_c": {
          "title": "Another long title too",
          "type": "string"
        },
        "property_d": {
          "title": "Another long title too",
          "type": "string"
        },
        "property_e": {
          "title": "Another long title too",
          "type": "string"
        }
      }
    }
  }

  var editor = new JSONEditor(editorContainer, {
    schema: schema,
    theme: 'bootstrap4',
    iconlib: 'fontawesome',
  })
</script>

</body>
</html>
